<!DOCTYPE html>
<html th:replace="layout/layout"
      xmlns:th="http://www.thymeleaf.org">
<style th:fragment="styles">
</style>
<div th:fragment="content" id="customModule">
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>处理记录</h2>
            <ol class="breadcrumb">
                <li>
                    <a href="/index?menuId=1">首页</a>
                </li>
                <li class="active">
                    <strong>处理记录</strong>
                </li>
            </ol>
        </div>
        <div class="col-lg-2">

        </div>
    </div>
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox ">
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <input type="text" id="search_TimeInterval" placeholder="上报日期" name="search_TimeInterval" v-model="timeInterval" autocomplete="off" class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <input type="text" id="enterpriseNameCondition" name="enterpriseNameCondition"
                                           v-model="enterpriseNameCondition" placeholder="上报企业" autocomplete="off"
                                           class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <button type="submit" class="btn btn-primary  btn-rounded  btn-sm" id="search"
                                        @click="search()"><i
                                        class="fa fa-search"></i>&nbsp;搜索
                                </button>
                                <button type="submit" class="btn btn-warning  btn-rounded  btn-sm" id="refresh"
                                        @click="reset()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置
                                </button>
                            </div>
                        </div>

                        <div class="jqGrid_wrapper">
                            <!--                            <div class="btn-group-sm" id="toolbar" role="group">-->
                            <!--                                <a @click="addRecord();" class="btn btn-success" data-toggle="modal" v-if="isAdd"-->
                            <!--                                >-->
                            <!--                                    <i class="fa fa-plus"></i>添加-->
                            <!--                                </a>-->
                            <!--                                &lt;!&ndash;<a class="btn btn-primary single disabled">&ndash;&gt;-->
                            <!--                                &lt;!&ndash;<i class="fa fa-edit"></i> 修改&ndash;&gt;-->
                            <!--                                &lt;!&ndash;</a>&ndash;&gt;-->
                            <!--                                &lt;!&ndash;<a class="btn btn-danger multiple disabled">&ndash;&gt;-->
                            <!--                                &lt;!&ndash;<i class="fa fa-remove"></i> 删除&ndash;&gt;-->
                            <!--                                &lt;!&ndash;</a>&ndash;&gt;-->
                            <!--                            </div>-->

                            <table class="table table-striped table-bordered table-hover " id="tableList">
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--处理模态框-->
    <div class="modal inmodal" id="myModalAdd" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">无害化处理</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">
                        <form class="form-horizontal" id="myform">
                            <div class="panel-body form-horizontal">

                                <div class="row">
                                    <label class="col-lg-2 control-label">上报日期：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" name="createTime" v-model="createTime"
                                                   placeholder="上报日期" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">病死畜禽数量：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" name="dead" v-model="dead"
                                                   placeholder="病死畜禽数量" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">病死畜禽种类：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="animal" name="animal" v-model="animal"
                                                   placeholder="病死畜禽种类" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">死亡原因：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" name="cause" v-model="cause"
                                                   placeholder="死亡原因" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label"><font color="red">*</font>标识编码：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" name="code" v-model="code"
                                                   placeholder="标识编码" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label"><font color="red">*</font>处理方式：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select v-model="method" autocomplete="off" class="form-control">
                                                <option value="0">焚烧</option>
                                                <option value="1">深埋</option>
                                                <option value="2">化制</option>
                                                <option value="3">集中无害化处理</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">承运人姓名：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" name="driver" v-model="driver"
                                                   placeholder="承运人姓名" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">车牌号：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" name="car" v-model="car"
                                                   placeholder="车牌号" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">联系电话：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" name="phone" v-model="phone"
                                                   placeholder="联系电话" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label"><font style="color: red">*</font>负责处理人员：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" name="person" v-model="person"
                                                   placeholder="负责处理人员" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">处理照片：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <img onclick="$('#uploadImages').click()" id="showImage" src="" style="display: none" class="img-responsive">
                                            <input accept=".png,.jpg" type="file" onchange="ImportImages()" id="uploadImages" name="uploadImages" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="save" name="save" class="btn btn-success" @click="saveRecord();"><i
                            class="fa fa-save"></i>&nbsp;提交
                    </button>
                    <button type="button" id="close" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>
    <!-- 处理模态框结束 -->

    <!-- 运输模态框 -->
    <div class="modal inmodal" id="myModalAdd1" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">车辆信息</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->

                    <div class="tabs-container">

                        <form class="form-horizontal" id="myform1">
                            <div class="panel-body form-horizontal">

                                <div class="row">
                                    <label class="col-lg-2 control-label">上报日期：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="createTime" name="createTime"
                                                   v-model="createTime"
                                                   placeholder="病死畜禽数量" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">病死畜禽数量：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" name="dead" v-model="dead"
                                                   placeholder="病死畜禽数量" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">病死畜禽种类：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" name="animal" v-model="animal"
                                                   placeholder="病死畜禽种类" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">病死畜禽来源：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" name="enterpriseName" v-model="enterpriseName"
                                                   placeholder="病死畜禽来源" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label"><font color="red">*</font>承运人：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="driver" name="driver" v-model="driver"
                                                   placeholder="承运人" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label"><font color="red">*</font>承运人车牌号：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" name="car" v-model="car"
                                                   placeholder="承运人车牌号" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label"><font color="red">*</font>承运人联系电话：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="phone" name="phone" v-model="phone"
                                                   placeholder="承运人联系电话" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="save1" name="save" class="btn btn-success" @click="saveRecord1();"><i
                            class="fa fa-save"></i>&nbsp;提交
                    </button>
                    <button type="button" id="close1" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>
    <!-- 运输模态框结束 -->

    <!-- 查看详情模态框 -->
    <div class="modal inmodal" id="myModalAdd3" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">无害化处理详情</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->

                    <div class="tabs-container">

                        <form class="form-horizontal" id="myform3">
                            <div class="panel-body form-horizontal">

                                <div class="row">
                                    <label class="col-lg-2 control-label">上报人：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" v-model="user" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">上报日期：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" v-model="createTime" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">上报企业：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" v-model="enterpriseName" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">企业法人：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" v-model="userName" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">企业地址：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" v-model="detailedAddress" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">联系电话：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" v-model="ephone" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">病死畜禽种类：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" v-model="animal" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">病死畜禽数量：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" v-model="dead" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">死亡原因：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" v-model="cause" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">承运人：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" v-model="driver" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">运输日期：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" v-model="transportationTime" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">承运车牌号：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" v-model="car" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">承运人电话：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" v-model="phone" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">处理时间：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" v-model="processingTime" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">处理方式：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select disabled v-model="method" autocomplete="off" class="form-control">
                                                <option value="0">焚烧</option>
                                                <option value="1">深埋</option>
                                                <option value="2">化制</option>
                                                <option value="3">集中无害化处理</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">负责处理人员：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" v-model="person" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">处理照片：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <img :src="img" class="img-responsive">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!--模态框body结束-->
                </div>
            </div>
        </div>
    </div>
    <!-- 查看详情模态框结束 -->
</div>
<div th:fragment="scriptRef">
    <script th:src="@{/js/lib/inspinia/js/plugins/laydate/laydate.js}"></script>
    <script th:src="@{/js/harmless/harmlessReportProcessed.js}"></script>
    <!--表单验证-->
    <script th:src="@{/js/lib/validate/jquery.validate.min.js}"></script>
    <!-- 文件上传 -->
    <script th:src="@{/js/Scripts/ajaxfileupload.js}"></script>
</div>
<script th:fragment="scripts" type="text/javascript">
    HarmlessReportProcessed.init();
</script>
</html>